package com.hh.usercenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hh.commonutils.Result;
import com.hh.usercenter.entity.UcenterMember;
import com.hh.usercenter.entity.vo.RegisterVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author hh
 * @since 2021-12-22
 */
public interface UcenterMemberService extends IService<UcenterMember> {

    Result   register(RegisterVo registerVo);

    String login(RegisterVo registerVo);

    UcenterMember getInfoByToken(HttpServletRequest request);

    UcenterMember getInfoByOpenId(String openId);

    UcenterMember getUcenterMenberById(String id);

    int getRegisterCountOfDay(String date);
}
